﻿using System;
using System.Collections.Generic;
using System.Text;
using Tools.Data;
using static Tools.Common.EnumClass;

namespace Tools.Service.DBService
{
    public class LoginService : Entities
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="passWord"></param>
        /// <returns></returns>
        public UserInfo Login(string userName, string passWord)
        {
            return Client.Queryable<UserInfo>().First(t => t.UserName == userName && t.PassWord == passWord&&!t.IsDelete);
        }
    }
}
